package com.example.hm_dtfkz.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * FileName: HelpEntity
 * Author: admin
 * Date: 2021/11/15 13:13
 * Description:
 */
public class HelpEntity implements MultiItemEntity {

    public static final int TYPE_RECEIVE = 0X01;//接收方
    public static final int TYPE_SEND = 0X02;//发送方

    private int itemType;           //数据分类
    private ReceiveEntity receiveEntity;
    private SendEntity sendEntity;

    public HelpEntity(int itemType, ReceiveEntity receiveEntity) {
        this.itemType = itemType;
        this.receiveEntity = receiveEntity;
    }

    public HelpEntity(int itemType, SendEntity sendEntity) {
        this.itemType = itemType;
        this.sendEntity = sendEntity;
    }

    public HelpEntity(int itemType, ReceiveEntity receiveEntity, SendEntity sendEntity) {
        this.itemType = itemType;
        this.receiveEntity = receiveEntity;
        this.sendEntity = sendEntity;
    }

    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public ReceiveEntity getReceiveEntity() {
        return receiveEntity;
    }

    public void setReceiveEntity(ReceiveEntity receiveEntity) {
        this.receiveEntity = receiveEntity;
    }

    public SendEntity getSendEntity() {
        return sendEntity;
    }

    public void setSendEntity(SendEntity sendEntity) {
        this.sendEntity = sendEntity;
    }

    public static class SendEntity {

        private String chatContent;     //聊天内容

        public SendEntity(String chatContent) {
            this.chatContent = chatContent;
        }

        public String getChatContent() {
            return chatContent;
        }

        public void setChatContent(String chatContent) {
            this.chatContent = chatContent;
        }
    }

    public static class ReceiveEntity {
        private String chatContent;     //聊天内容

        public ReceiveEntity(String chatContent) {
            this.chatContent = chatContent;
        }

        public String getChatContent() {
            return chatContent;
        }

        public void setChatContent(String chatContent) {
            this.chatContent = chatContent;
        }

    }

}